﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Scale2;
using ECS.DAL.Entity;

namespace E_ICS
{
    public  class GlobalVariable
    {
        public static GetScale Wgh = new GetScale();
        //User Authentication
        public static String userName = string.Empty;
        //Flight Search
        public static String carrier = string.Empty;
        public static String flightNO = string.Empty;
        public static String[] commenttype_id = new string[200];
        public static UserAuthenticate user = null;
        public static int cerent = -1;
        public static int flagfromfrmAddOtherInfo = 0;
        public static String version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
        public static String Device = System.Environment.MachineName;
        public static String WghComPort = "COM1";
        public static String scaleID = string.Empty;
        public static String fbl_fltNO = "CX1000";
        public static String Origin = string.Empty;
        public static String slip_type = string.Empty;
        public static String ewsFlag = string.Empty;
        public static String chkShipmentType = string.Empty;
        public static string chkDatasource = string.Empty;
        public static string chkFBL = string.Empty;
    }

    public class SaveInfomationMawb
    {
        public static String carrier = string.Empty;
        public static String flg_no = string.Empty;
        public static String flg_disp = string.Empty;
        public static String strflg_date = string.Empty;
        public static DateTime dtflg_date = new DateTime();

    }
    public class ViewEditWHInventory
    {
        public static String MAWB_ID = string.Empty;
        public static String slip_id = string.Empty;
        public static String MAWB = string.Empty;
        public static String HAWB = string.Empty;
        public static String Flight_No = string.Empty;
        public static String Flight_Date = string.Empty;
        public static String Partial_Acc = string.Empty;
        public static String Piece = string.Empty;
        public static String Weight = string.Empty;
        public static String Last_Stored = string.Empty;
        public static String Last_Retrieved = string.Empty;
        public static String Status = string.Empty;
        public static String scale_id = string.Empty;
        public static String slip_number = string.Empty;
        public static String Nature_of_Goods = string.Empty;
        public static String strPiece = string.Empty;
        public static int intPiece = 0;
          
    }
      

    public class ViewEditWeightSlip
    {
        // by por
        public static String MAWB_ID = string.Empty;
        public static String slip_id = string.Empty;
        public static String MAWB = string.Empty;
        public static String HAWB = string.Empty;
        public static String Piece = string.Empty;
        public static String Weight = string.Empty;
        public static String Carrier = string.Empty;
        public static String Flight_No = string.Empty;
        public static String Flight_Date = string.Empty;
        public static String Destination = string.Empty;
        public static String Nature_of_Goods = string.Empty;
        public static String Scale_ID = string.Empty;
        public static String Slip_Number = string.Empty;
        public static String WS_Create = string.Empty;
        public static String Agent = string.Empty;
        public static String Agent_Name = string.Empty;
        public static int flagfromViewEditWeightSlip = 0;
        public static bool flagUsedateSearch = false;
        
        
        
        //by SJ

        public static String awb_seq = string.Empty;
        public static String awb_move_seq = string.Empty;
        public static String partial_seq = string.Empty;
    }


    public class ViewEditComment
    {
        public static String Data_Key_id = string.Empty;
        public static String Data_Key = string.Empty;
        public static String Data_Value = string.Empty;



    }

    public class ViewEditLocationDetail
    {
        public static String InventoryId = string.Empty;
        public static String LocationID = string.Empty;
        public static String Location_display = string.Empty;
        public static String Pieces_Loc = string.Empty;
    }

    public class ViewEditWeightId
    {
        public static String editwawb_Id = string.Empty;
        public static String editweight_Id = string.Empty;
        public static String editslip_Id = string.Empty;
        public static String pallet_count = string.Empty;
        public static String gross_weight = string.Empty;
        public static String tare_weight = string.Empty;
        public static String net_weight = string.Empty;
        public static String weight_number = string.Empty;
        public static String editPieces = string.Empty;
        public static int inteditPieces = 0;

    }
    public class ValueTofrmAddMAWB
    {
        
        public static String SelPrefix = string.Empty;
        public static String SelSerial = string.Empty;
        public static String Selhawb = string.Empty;
        public static String SelFlt_no = string.Empty;
        public static String SelFlt_date = string.Empty;
        public static String Seldest = string.Empty;
        public static String SelSeq = string.Empty;
        public static String SelAgentCode = string.Empty;
        public static String SelAgentName = string.Empty;
        public static String SelNatureOfGood = string.Empty;
        public static String Selshipment_type = string.Empty;
        public static String Selpiece_count = string.Empty;
        public static String Selcarrier = string.Empty;
        public static String Selflight_date = string.Empty;
        public static string SelEws = string.Empty;
        public static string SelSource = string.Empty;
        public static string SelOrigin = string.Empty;
        public static bool consol = true;
        public static string SelslipType = "Local";
       // public static bool SelEWS = false;
    }

}
